//
//  LiftIMContactManger.h
//  AAIM
//
//  Created by awh on 2019/12/29.
//  Copyright © 2019年 AAIM. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
@class BTMessageModel;

@protocol LiftIMContactMangerDelegate <NSObject>

@optional;

- (void)contactChangedMessageDidReceive:(NSArray<BTMessageModel *> *)messages;


@end
@interface LiftIMContactManger : NSObject

@property(nonatomic, strong) NSMutableArray *delegates;

- (void)addDelegate:(id<LiftIMContactMangerDelegate>)delegate;

- (void)removeDelegate:(id<LiftIMContactMangerDelegate>)delegate;


/**
 申请好友
 
 @param uid uid
 @param content 请求备注
 @param complete 发送完成回调
 */
- (void)applyAddFriend:(NSInteger)uid content:(NSString *)content complete:(void (^)(NSDictionary *info, NSError *error))complete;


/**
 同意好友申请
 
 @param uid uid
 @param complete 发送完成回调
 */
- (void)agreeAddFriend:(NSInteger)uid complete:(void (^)(NSDictionary *info, NSError *error))complete;



/**
 删除好友
 
 @param uid 好友uid
 @param complete 发送完成回调
 */
- (void)deleteFriend:(NSInteger)uid complete:(void (^)(NSDictionary *info, NSError *error))complete;


- (void)receivedMessages:(NSArray<BTMessageModel *> *)messages;

@end

NS_ASSUME_NONNULL_END
